package polyu.comp;

import java.util.List;

import com.google.android.maps.*;

import android.app.*;
import android.os.Bundle;
import android.widget.*;

public class MapRouteActivity extends MapActivity {
	
	LinearLayout linearLayout;
	MapView mapView;
	List<Overlay> mapOverlays;
	
	@Override
	protected void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		
		this.setContentView(R.layout.map_layout);
		
		mapView = (MapView) findViewById(R.id.mapview);
		mapView.setBuiltInZoomControls(true);
		
		RunPathOverlay rpo = new RunPathOverlay();
		
	    mapOverlays = mapView.getOverlays();
	    mapOverlays.add(rpo);
	    
	    // Set the view to start point.
	    mapView.getController().setCenter( rpo.getmGeoPoints().firstElement());
	    mapView.getController().setZoom(17);
	}



	@Override
	protected boolean isRouteDisplayed() {
		return false;
	}

}
